package day0114;

public class Test3 {
    public static void main(String[] args) {
        test1(40,16);
    }

    private static void test1(int num1, int num2) {
        if(num1<num2){//确保num1大
            int t=num2;
            num2=num1;
            num1=t;
        }
        //已经它俩哪个大
        //int result 12  =num1%num2;


        /*
        int n2=result;  //12
        result 8=num2  56  %result 12;
        num2=n2;//12


        int n2=result;  //8
        result 8=num2  12  %result 8;
        num2=n2;  //8



         int n2=result;  //4
        result 8=num2  8  %result 4;
        num2=n2;



        if(result==0){
            reutrn;
        }
        */
        //1.大的数和小求余数
        //2.然后用比较小的数和结果再求余数，如果余数位0上一次的余数就是答案


    }
}
